/***********************************************************************************
**  
* @copyright (c) 2010-2019, ChengDu Duyer Technology Co., LTD. All Right Reserved.
*
************************************************************************************/
/**
* @file	    mjs_web_auth_action.h
* @version     
* @brief      
* @author   duye
* @date	    2017-01-11
* @note 
*
* 1. 2017-01-11 duye Created this file
*/

#pragma once

#include <mjs_inner_msg.h>
#include <mjs_on_action.h>

class MJMsgAction;
class MJSReqer;

class MJSWebAuthAction : public MJSOnActionBase {
public:
	MJSWebAuthAction();
	virtual ~MJSWebAuthAction();
	virtual bool onAction(MJMsgAction* action, MJSReqer* reqer);

private:
	bool response(MJSReqer* reqer, const std::string& action_name, const std::string& user, const bool result, const std::string& desc);
	bool notify(MJSReqer* reqer, MJSInnerMsgType type, const int8* data = NULL);
};
